<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数字类型转换</title>

    <script>
        console.log(parseInt('214'));
        console.log(parseFloat('214.21'));
    </script>

</head>

<body>

</body>

</html>